from django.urls import path
from apps.goods.views import IndexView, ListView, HotGoodsView, MySearchView, DatailView, DetailVisitView

urlpatterns = [
    path('index/', IndexView.as_view()),
    path('list/<category_id>/skus/', ListView.as_view()),
    path('hot/<category_id>/', HotGoodsView.as_view()),
    # 因为是工具类　所以不需要添加 as_view()
    path('search', MySearchView()),
    path('detail/<sku_id>/', DatailView.as_view()),
    path('detail/visit/<category_id>/', DetailVisitView.as_view())
]
